import request from '@/utils/request'

// 查询综合收银列表
export function listCashregister(query) {
  return request({
    url: '/msr/cashregister/list',
    method: 'get',
    params: query
  })
}

// 查询综合收银详细
export function getCashregister(id) {
  return request({
    url: '/msr/cashregister/' + id,
    method: 'get'
  })
}

// 新增综合收银
export function addCashregister(data) {
  return request({
    url: '/msr/cashregister',
    method: 'post',
    data: data
  })
}

// 修改综合收银
export function updateCashregister(data) {
  return request({
    url: '/msr/cashregister',
    method: 'put',
    data: data
  })
}

// 删除综合收银
export function delCashregister(id) {
  return request({
    url: '/msr/cashregister/' + id,
    method: 'delete'
  })
}
